package com.hula.onion.book.server.spider.platforms.dianrongwang;

import org.springframework.stereotype.Component;

/**
 * Description:
 * Create Date:2018/1/18 14:18
 *
 * @author shan
 * @version 1.0
 */
@Component
public class DianRongWangResponseEntity<T> {

    /**
     * 信息
     */
    private String message;
    /**
     * 错误信息
     */
    private String errors;

    /**
     * 返回码
     */
    private String code;

    /**
     * 是否成功标识
     */
    private String result;

    /**
     * 成功时存储的数据
     */
    private T content;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getErrors() {
        return errors;
    }

    public void setErrors(String errors) {
        this.errors = errors;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "DianRongWangResponseEntity{" +
                "message='" + message + '\'' +
                ", errors='" + errors + '\'' +
                ", code='" + code + '\'' +
                ", result='" + result + '\'' +
                ", content=" + content +
                '}';
    }
}